package com.yike.user.service;

import com.yike.user.entity.UserSetting;
import com.yike.user.param.UserSettingPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;

/**
 * 用户设置表 服务类
 *
 * @author Sakura
 * @since 2024-09-12
 */
public interface UserSettingService extends BaseService<UserSetting> {

    /**
     * 保存
     *
     * @param userSetting
     * @return
     * @throws Exception
     */
    boolean saveUserSetting(UserSetting userSetting) throws Exception;

    /**
     * 修改
     *
     * @param userSetting
     * @return
     * @throws Exception
     */
    boolean updateUserSetting(UserSetting userSetting) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteUserSetting(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param userSettingPageParam
     * @return
     * @throws Exception
     */
    Paging<UserSetting> getUserSettingPageList(UserSettingPageParam userSettingPageParam) throws Exception;

}
